#include "Dictionary.h"
#ifndef __KEYRECOMMANDER_H__
#define __KEYRECOMMANDER_H__
#include <memory>
#include <queue>

using std::priority_queue;
using std::shared_ptr;

class KeyRecommander
{
public:
    KeyRecommander(shared_ptr<Dictionary> dict)
    :_dict(dict)
    {}

    //result为查询的结果
    void doQuery(const string& word,string& result);
private:
    shared_ptr<Dictionary> _dict;
    priority_queue<CandidateResult> _prique;
};

#endif
